package com.cq.cqmall.ware.feign;

import com.cq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 产品Feign服务
 *
 * @author 程崎
 * @since 2022/10/06
 */
@FeignClient("cq-mall-product")
public interface ProductFeignService {

    /**
     * 让所有请求过网关
     *
     * @param skuId sku id
     * @return {@link R}
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);
}
